package com.haochu.qipaipuzi.network.socket;

public interface GameClient {

    public abstract void connectFail();

    public abstract boolean isConnected();

    public abstract void waitTimeOut();

    /**
     * Socket异常
     */
    public abstract void socketException(Throwable e);

    /**
     * socket关闭时的处理
     */
    public abstract void socketClosed();

    /**
     * 发送消息
     */
    public abstract void sendMsg(String msg);

    /**
     * 接收消息处理
     */
    public abstract void messageReceived(String msg);

    public abstract int status();
}
